<?
//获取指定数据:
//$belong 所属板块
//$sort_by:排序项,
//$order：排序方式
//$condition:热销，售罄，推荐，打折，标记
//number:获取数据数量
function get_cat_child($nid,$belong)
{

  global $table_Prefix;


  $sqlstr="SELECT nid FROM ".$table_Prefix."term where (term1 = $nid or term2 = $nid or term3 = $nid or term4 = $nid or term5 = $nid) and belong = '".$belong."'";

$result = mysql_query($sqlstr);
$detail[]  = $nid;
while ($row = mysql_fetch_assoc($result)) {

  $detail[]           = $row['nid'];
  
}

return $detail;

}
?>

